package org.jeecg.modules.door.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.door.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 门锁管理
 * @Author: jeecg-boot
 * @Date:   2023-08-08
 * @Version: V1.0
 */
public interface ILwgyJointDoorService extends IService<LwgyJointDoor> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(LwgyJointDoor lwgyJointDoor, List<LwgyDoorPassword> lwgyDoorPasswordList, List<LwgyDoorCard> lwgyDoorCardList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(LwgyJointDoor lwgyJointDoor, List<LwgyDoorPassword> lwgyDoorPasswordList, List<LwgyDoorCard> lwgyDoorCardList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);


	IPage<LwgyJointDoor> queryPageListCustom(Page<LwgyJointDoor> page, QueryWrapper<LwgyJointDoor> queryWrapper);

	List<LwgyJointDoor> queryCustom( QueryWrapper<LwgyJointDoor> queryWrapper);

	public List<LwgyJointDoor> selectByMainId(String mainId);

	//读取锁状态
	Boolean doorInfo(String deviceNumber);



}
